﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace WOWMultiPlay
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Load User Settings
            if (Serializer<UserSettings>.CanDeserialize(Settings.SettingsFilePath))
            {
                Settings.UserSettings = Serializer<UserSettings>.Deserialize(Settings.SettingsFilePath);
            }

            Form_ChooseInstanceAndProfile Form_ChooseInstanceAndProfile = new Form_ChooseInstanceAndProfile();
            Application.Run(Form_ChooseInstanceAndProfile);

            if (Form_ChooseInstanceAndProfile.DialogResult == DialogResult.OK)
            {
                Application.Run(new Form_Main());
            }
        }
    }
}
